package com.springcloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration(exclude= {/*
								   HibernateJpaAutoConfiguration.class,
								   SecurityAutoConfiguration.class,*/
        DataSourceAutoConfiguration.class,
        JpaRepositoriesAutoConfiguration.class //禁止springboot自动加载持久化bean
})

@EnableEurekaClient
@ComponentScan
@SpringBootApplication
public class ConfigClientApplication  {
    private static final Logger LOGGER = LoggerFactory.getLogger(ConfigClientApplication .class) ;
    public static void main(String[] args) {
        SpringApplication.run(ConfigClientApplication .class, args);
        LOGGER.info("Config Client 配置中心客户端 启动成功！");
    }
}
